<?php
/**
 * 类名称
 * User: 13651
 * Time: 2025/9/19 10:06
 */

namespace App\Services;

use App\Extensions\BaseService;
use App\Repository\LeshuaUnionBankRepo;

class LeshuaUnionBankService extends BaseService
{
    /**
     * 更新数据
     * @param array $data
     * @return bool|int
     */
    public function saveDataService(array $data )
    {
        return LeshuaUnionBankRepo::getInstance()->saveData($data);
    }

    /**
     * 根据银行名称获取名称
     * @param string $name
     * @return \Illuminate\Database\Eloquent\Builder[]|\Illuminate\Database\Eloquent\Collection
     */
    public function getNameService(string $name)
    {
        return LeshuaUnionBankRepo::getInstance()->getName($name);
    }
}